<!--分类管理-->
<div id="blog_add" class="blog_add" style="display: block;">
    <form>
        <div class="blog_add01">
            <div style="position:relative;float:left;"> 分类管理</div>
            <div class="blog_add02"><a href="" ng-click="categoryModal.close()"><img src="/images/cha.png"/></a></div>
        </div>
        <div class="blog_add03">
            <div class="blog_add0505">
                <input type="text" class="blog_add05" ng-model="newCategoryName" ng-trim="true">
            </div>
            <a href="" ng-click="add()"><div class="blog_add06"> 创建分类</div></a>
            <span style="font-size:12px;color:#666;font-weight:100;">(请用中文、英文或数字)</span>

            <ul class="blog_add04">
                <li ng-repeat="category in categories" ng-init="category.editable = false">
                    <div class="blog_add0401" ng-show="!category.editable">{{category.name}}</div>
                    <div class="blog_add0401" ng-show="category.editable">
                        <input class="blog_add05" value="{{category.name}}" ng-model="category.name">
                        <a href="" ng-click="edit_save(category)">保存</a>
                        <a href="" ng-click="edit_cancel(category)">放弃</a>
                    </div>
                    <div class="blog_add0402">
                        <a href="" ng-click="edit(category)" ng-show="!category.editable">[编辑]</a>
                        <a href="" ng-click="remove(category)">[删除]</a>
                    </div>
                </li>
            </ul>
        </div>
        <!--<div class="collect_add02">
            <a href="" ng-click="submit()">
                <div style="height:24px;width:50px; background-color:#578429;color:#FFF;position:absolute;float:left;left:45%;">
                    确&nbsp;认
                </div>
            </a>
        </div>-->
    </form>
</div>
<!--end分类管理-->
